# !usr/bin/env python
# -*- coding:utf-8 -*-
from django.conf.urls import url, include
from .views import OrgView,AddUserAskView,OrgHomeView,OrgCourseView,OrgDescView,OrgTeacherView,AddFavView,TeacherListView,TeacherDetailView

urlpatterns = [
    # 课程机构列表页
    url(r'^list/$', OrgView.as_view(), name='org_list'),
    # 用户咨询
    url(r'^add_ask/$', AddUserAskView.as_view(), name='add_ask'),
    # 机构详情页(首页)(课程)(介绍)(讲师)
    url(r'^home/(?P<org_id>.*?)/$', OrgHomeView.as_view(), name="org_home"),
    url(r'^course/(?P<org_id>.*?)/$', OrgCourseView.as_view(), name="org_course"),
    url(r'^desc/(?P<org_id>.*?)/$', OrgDescView.as_view(), name="org_desc"),
    url(r'^org_teacher/(?P<org_id>.*?)/$', OrgTeacherView.as_view(), name="org_teacher"),
    # 用户收藏
    url(r'^add_fav/$', AddFavView.as_view(), name='add_fav'),

    # 讲师列表页
    url(r'^teacher/list/$', TeacherListView.as_view(), name="teacher_list"),
    # 讲师详情页
    url(r'^teacher/detail/(?P<teacher_id>\d+)/$', TeacherDetailView.as_view(), name="teacher_detail"),
]